//
//  GoodsListPageTool.m
//  MindBox
//
//  Created by MS on 16-1-11.
//  Copyright (c) 2016年 Lemon. All rights reserved.
//

#import "GoodsListPageTool.h"
#import "LGHttpTool.h"

@implementation GoodsListPageTool
+ (void)googListDataWithParam:(Param *)param Success:(void (^)( NSArray * data))success failure:(void (^)( NSError *error))failure
{
    [LGHttpTool GET:@"http://app.xinyihezi.com:8888/good/" parameters:[param mj_keyValues] success:^(id responseObject) {
        
        Gift_Goods_Model * goodsData = [Gift_Goods_Model mj_objectWithKeyValues:responseObject];
        NSArray * data = goodsData.data;
        
        if (success) {
            
            success(data);
        }
        
        
    } failure:^(NSError *error) {
        if (failure) {
            failure(error);
        }
        
    }];
}



@end
